package com.xseagull.scm.feign;

import org.springframework.stereotype.Component;

import com.xseagull.scm.common.ResultCode;
import com.xseagull.scm.common.ResultData;
import com.xseagull.scm.entity.User;

@Component
public class AccountFeignClientFallback implements AccountFeignClient {
	@Override
	public ResultData insert(User user) {
		return ResultData.error(ResultCode.SERVICE_UNAVAILABLE);
	}

	@Override
	public ResultData getOneParameter(int number) {
		return ResultData.error(ResultCode.SERVICE_UNAVAILABLE);
	}

	@Override
	public ResultData getMoreParameter(int number, String name) {
		return ResultData.error(ResultCode.SERVICE_UNAVAILABLE);
	}

	@Override
	public ResultData getPathVariable(int number) {
		return ResultData.error(ResultCode.SERVICE_UNAVAILABLE);
	}

	@Override
	public ResultData postOneParameter(int number) {
		return ResultData.error(ResultCode.SERVICE_UNAVAILABLE);
	}

	@Override
	public ResultData postMoreParameter(int number, String name) {
		return ResultData.error(ResultCode.SERVICE_UNAVAILABLE);
	}

	@Override
	public ResultData postPathVariable(int number) {
		return ResultData.error(ResultCode.SERVICE_UNAVAILABLE);
	}

	@Override
	public ResultData postObject(User user) {
		return ResultData.error(ResultCode.SERVICE_UNAVAILABLE);
	}
}